﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TaoBaiViet.Master" AutoEventWireup="true" CodeBehind="ThongTinCaNhan.aspx.cs" Inherits="Web_Blog.ThongTinCaNhan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style3
        {
            height: 28px;
        }
        .style4
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2" 
                style="text-align: center; font-weight: bold; font-size: medium; color: #FFFFFF; text-decoration: underline; font-style: italic;">
                Thông tin cá nhân</td>
        </tr>
        <tr>
            <td class="style3">
                Họ tên</td>
            <td class="style3">
                <asp:TextBox ID="txt_hoten" runat="server" Width="345px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_hoten" runat="server" 
                    ControlToValidate="txt_hoten" ErrorMessage="Nhập họ tên"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Nick name</td>
            <td>
                <asp:TextBox ID="txt_nick" runat="server" ReadOnly="True" Width="345px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Avatar</td>
            <td>
                <asp:Image ID="avatar" runat="server" Height="125px" Width="125px" /><br />
                <input id="avatarupload" name="avatarupload" type="file" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                Ngày sinh</td>
            <td>
                <asp:TextBox ID="txt_ngaysinh" runat="server" Width="345px"></asp:TextBox>
                <asp:CompareValidator ID="cv_ngaysinh" runat="server" 
                    ControlToValidate="txt_ngaysinh" ErrorMessage="Nhập ngày sinh" 
                    Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Giới tính</td>
            <td>
                <asp:DropDownList ID="ddl_gioitinh" runat="server" Width="200px">
                    <asp:ListItem Value="1">Nam</asp:ListItem>
                    <asp:ListItem Value="0">Nữ</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Email</td>
            <td>
                <asp:TextBox ID="txt_email" runat="server" Width="345px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_email" runat="server" 
                    ControlToValidate="txt_email" ErrorMessage="Nhập địa chỉ email"></asp:RequiredFieldValidator>
            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                    runat="server" ControlToValidate="txt_Email" ErrorMessage="!" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Số điện thoại</td>
            <td>
                <asp:TextBox ID="txt_sdt" runat="server" Width="345px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txt_sdt" ErrorMessage="Nhập số điện thoại"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Giới thiệu</td>
            <td>
                <asp:TextBox ID="txt_gioithieu" runat="server" TextMode="MultiLine" 
                    Width="345px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Ngày gia nhập</td>
            <td>
                <asp:TextBox ID="txt_ngaygianhap" runat="server" ReadOnly="True" Width="345px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Website</td>
            <td>
                <asp:TextBox ID="txt_website" runat="server" Width="345px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:Button ID="btnCapNhat" runat="server" onclick="btnCapNhat_Click" 
                    Text="Cập Nhật" Width="110px" />
                <asp:Label ID="lblThongBao" runat="server"></asp:Label>
            </td>
        </tr>
    </table>

    <table class="style1" id="doimatkhau">
        <tr>
            <td colspan="2" style="text-align:center">
                <br />
                <span style="text-align: center; font-weight: bold; font-size: medium; color: #FFFFFF; text-decoration: underline; font-style: italic;">Đổi mật khẩu</span></td>
        </tr>
        <tr>
            <td class="style4">
                Mật khẩu hiện tại:</td>
            <td>
                <asp:TextBox ID="tbxMatKhauHienTai" runat="server" Width="276px" 
                    TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Mật khẩu mới:</td>
            <td>
                <asp:TextBox ID="tbxMatKhauMoi1" runat="server" Width="276px" 
                    TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Nhập lại mật khẩu mới:</td>
            <td>
                <asp:TextBox ID="tbxMatKhauMoi2" runat="server" Width="276px" 
                    TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ErrorMessage="Không giống" ControlToCompare="tbxMatKhauMoi1" 
                    ControlToValidate="tbxMatKhauMoi2"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style4" colspan="2">
                <asp:Button ID="btnDoiMatKhau" runat="server" Text="Đổi mật khẩu" 
                    Width="110px" onclick="btnDoiMatKhau_Click" />
                <asp:Label ID="lblThongBaoMatKhau" runat="server"></asp:Label>
            </td>
        </tr>
    </table>

</asp:Content>


